import React, { Component } from 'react'
export default class App extends Component {
  state = {
    styleObj: {
      color: 'red'
    },
    styleObj2: {
      'font-size': '50px'
    }
  }
  render() {
    return (
      <div>
        <h1 style={this.state.styleObj}>style绑定样式</h1>
      </div >
    )
  }

}
